import service from '@/utils/request'

export const yiyuslide = () => {
  return service({
    url: '/yiyu/yiyuGetSlide',
    method: 'get'
  })
}

export const yiyuDelSlide = (params) => {
  return service({
    url: '/yiyu/yiyuDeleteSlide',
    method: 'delete',
    params
  })
}

export const yiyuSlideDetail = (params) => {
  return service({
    url: '/yiyu/yiyuGetidSlide',
    method: 'get',
    params
  })
}

export const yiyuUpdateSlide = (data) => {
  return service({
    url: '/yiyu/yiyuUpdateSlide',
    method: 'put',
    data
  })
}

export const yiyuCreateSlide = (data) => {
  return service({
    url: '/yiyu/yiyuCreateSlide',
    method: 'post',
    data
  })
}
